package cn.itcast.hotel.mapper;

import cn.itcast.hotel.pojo.Hotel;
import cn.itcast.hotel.pojo.UserBean;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface HotelMapper extends BaseMapper<Hotel> {
    UserBean findUserName(String username);

    void registerUser(UserBean user);

    UserBean changePassword(Integer userId);

    UserBean findUserByPhone(String userPhone);
}
